<!
 ============================================================================
 Name        : qr-code.php
 Author      : Stefan Nagel
 Version     : 0.0.1
 Copyright   : 2014 Stefan Nagel
 	 	 	 	This file is part of the BringYourOwnDevice application.
				BringYourOwnDevice is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
				BringYourOwnDevice is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
				You should have received a copy of the GNU General Public License along with zeitmessanlage. If not, see http://www.gnu.org/licenses/.
  Description : Php script to generate a QR-code from the given uploaded file
 ============================================================================
 >
<?php

include('./phpqrcode/qrlib.php');

//echo "http://192.168.42.10/Schule/".$_POST['file'];
//QRcode::png("http://192.168.42.10/Schule/".$_POST['file']);
QRcode::png("http://192.168.42.10/Schule/".$_POST['file'], $_POST['file'].".png", 'L', 4, 2);

?>
	